package com.atguigu.com.gulimallouth.feign;

import com.atguigu.com.gulimallouth.vo.LoginVo;
import com.atguigu.com.gulimallouth.vo.OauthUser;
import com.atguigu.com.gulimallouth.vo.RegisterVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeign {

    @PostMapping("/member/member/regist")
    R register(@RequestBody RegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody LoginVo vo);

    @PostMapping("/member/member/oauth/login")
    public R oauthLogin(@RequestBody OauthUser vo);
}
